package com.share.dao;

import com.share.domain.User;
import org.springframework.stereotype.Repository;

/**
 * @author caifan
 * @date 2017/12/30
 */
@Repository
public interface UserDao {
	
	/**
	 * 登录查询
	 * @param sql
	 * @param username
	 * @param password
	 * @return
	 */
	/*public Map<String, Object> loginQuery(String sql, String username, String password) {
		return this.getJdbcTemplate().queryForMap(sql, username, password);
	} */
	/**
	 * 登录查询
	 * @param sql
	 * @param username
	 * @param password
	 * @return
	 */
	/*public Map<String, Object> loginQuery(String sql, String username) {
		return this.getJdbcTemplate().queryForMap(sql, username);
	} */

	/**
	 * 根据用户名密码查询用户信息
	 * @param username
	 * @return
	 */
	public User loginByUsername(String username);

}
